Skip to content

docs(release): point macOS users at the .dmg checksum that exists - #394

Merged
DeepDiver1975 merged 1 commit into
mainfrom
docs/release-verification-checklist
Sep 18, 2026
Merged

DeepDiver1975 merged 1 commit into
mainfrom
docs/release-verification-checklist

Conversation

@DeepDiver1975

Copy link
Copy Markdown
Contributor

Why

The release trust pack (#375) shipped SHA256SUMS.txt, Sigstore attestations and a .sha256 for the .dmg, and the README plus the generated release notes now tell users to check them. None of it has ever run: it only fires on a v* tag, and v0.5.0 (2026-09-11) predates the whole thing. So I rehearsed the half that can be checked without a release, and it turned up a trap in what we tell users.

The bug

A macOS user is offered exactly one line:

shasum -a 256 -c SHA256SUMS.txt    # macOS

SHA256SUMS.txt covers the .msi, the .deb and the .apk. The .dmg is built after the release exists, so it deliberately never joins that file — it carries its own .dmg.sha256. A Mac user who downloaded the .dmg and followed our instruction therefore gets:

lagebuch_0.5.0_amd64.deb: FAILED open or read
lagebuch-0.5.0.apk: FAILED open or read
lagebuch-0.5.0-x64.msi: FAILED open or read
sha256sum: WARNING: 3 listed files could not be read

Exit 1, three failures — which is what a tampered download looks like. For a Datenschutzbeauftragter checking our provenance story, that is the worst possible first impression, and it is our documentation at fault, not the artifacts.

The README and the release notes now name the .dmg.sha256 path as well.

Two more, in docs/releasing.md

  • A manual macOS run checks out the ref it was started on, and the instruction never said to start it on the tag. workflow_dispatch defaults to main, so following it as written builds whatever has merged since the tag and --clobbers that onto the release as its .dmg. Now spelled out, with gh workflow run release.yml --ref v0.6.0 -f version=0.6.0.
  • Nothing said what to check after tagging. Added a four-item "After the tag" list: the checksum file is attached and verifies, gh attestation verify passes for the three attested packages, the macOS run attached both the .dmg and its .sha256, and the pre-release flag matches the tag.

What was verified, and what was not

Rehearsed locally against the real v0.5.0 assets, staged in the layout actions/download-artifact leaves behind (dist/msi/, dist/deb/, dist/apk/), running the workflow's shell verbatim:

  • SHA256SUMS.txt lists three bare names, no dist/ prefix, and does not list itself — which is what writing it to $RUNNER_TEMP and moving it back is for
  • sha256sum -c SHA256SUMS.txt in the download folder → exit 0
  • all three hashes match the digest GitHub reports for those release assets
  • the flatten leaves no nested files and no empty directories
  • the .dmg sidecar round-trips: shasum -a 256 output format verifies with sha256sum -c, bare name included
  • the patched release notes were rendered by executing the Build release notes step's own script with VERSION=0.6.0

Not exercised: actions/attest-build-provenance and gh attestation verify, the action-gh-release upload and the macOS leg. Exercising them means writing permanent entries to the public Sigstore transparency log, so that was left alone on purpose — the new checklist is what closes it, on the first real tag.

No src/ change; the CHANGELOG entry is there anyway because this changes an instruction users act on.

🤖 Generated with Claude Code

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

@claude review

@claude

claude Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

Claude finished @DeepDiver1975's task in 1m 53s —— View job


Review

  • Gather context (PR body, changed files)
  • Read changed files (README.md, docs/releasing.md, CHANGELOG.md, .github/workflows/release.yml)
  • Review diff for correctness, consistency, and repo conventions
  • Post review feedback

I traced the claims in the PR body against the actual workflow/script logic rather than just the diff:

  • packaging/macos/build-dmg.sh:61 confirms the .dmg filename is exactly lagebuch-${VERSION}-macos-arm64.dmg, and .github/workflows/release.yml:334 confirms the sidecar is shasum -a 256 "$f" > "$f.sha256" on that same filename — so the new lagebuch-<Version>-macos-arm64.dmg.sha256 instructions in README.md, docs/releasing.md, and the release-notes heredoc in release.yml are all correct and consistent with each other.
  • The release-notes heredoc uses <<EOF (unquoted), so ${VERSION} in the new lines (release.yml:259) interpolates exactly like the existing ${VERSION}/${DEB_VERSION} lines around it — no shell-escaping bug.
  • ${VERSION} (not ${DEB_VERSION}) is the right variable for the .dmg name — confirmed against release.yml:62-64, which shows only the .deb gets the ~-substituted version; the .dmg (built via build-dmg.sh) uses the plain version output, matching what's used here.
  • gh workflow run release.yml --ref v0.6.0 -f version=0.6.0 matches the actual workflow_dispatch.inputs.version name (release.yml:14).
  • The new CHANGELOG entry is correctly placed under ### Fixed in [Unreleased].

One gap worth checking before merge: AGENTS.md says README's "Downloads prüfen" section is maintained in lockstep with src/content/docs/download.md in the codeforfire.github.io repo, in the same PR pair. This PR adds new .dmg.sha256 verification instructions to that exact README section but I don't see a companion PR referenced. I wasn't able to check the other repo's current content from this sandbox (network calls there require approval I don't have here), so I can't confirm whether it already covers the .dmg case or would now disagree with README. Worth a quick look before merging — Fix this →.

Everything else — the macOS "start on the tag" fix, the new "After the tag" checklist, and the wording — matches the workflow's actual behavior. No other issues found.

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

Companion PR opened: CodeForFire/codeforfire.github.io#2.

That answers the open question from the review above. The website's Downloads prüfen section (src/content/docs/download.md:44-59) carried the identical trap — the same lone shasum -a 256 -c SHA256SUMS.txt # macOS line, with no mention of the .dmg.sha256 — so it needed the same fix rather than just a check. The German wording mirrors this PR's README hunk so the two pages read the same.

Per AGENTS.md's cross-repo table, the two merge together.

🤖 Generated with Claude Code

@DeepDiver1975
DeepDiver1975 force-pushed the docs/release-verification-checklist branch from ebd3bb1 to a6b1fe7 Compare September 18, 2026 21:45
The download-verification block added with the release trust pack (#375) offers
a macOS user exactly one line, `shasum -a 256 -c SHA256SUMS.txt`. That file
covers the .msi, the .deb and the .apk; the .dmg is built after the release
exists and carries its own .dmg.sha256, so a Mac user who downloaded the .dmg
and followed our instruction got three "FAILED open or read" lines and a
non-zero exit — the failure mode looks exactly like a tampered download.

The README and the generated release notes now name the .dmg.sha256 path too.

While verifying that path, two more things in docs/releasing.md:

- A manual macOS run checks out the ref it was started on, and the instruction
  did not say to start it on the tag. Started on main it builds whatever has
  merged since and uploads that as the release's .dmg.
- Nothing said what to check after a tag. Neither the checksum file nor the
  attestations had ever been produced by a real run, so there is now a
  four-item list for the first tag that does.

The checksum step's shell was rehearsed against the real v0.5.0 assets in the
layout download-artifact leaves behind: SHA256SUMS.txt lists three bare names,
does not list itself, `sha256sum -c` passes in the download folder, and all
three hashes match the digests GitHub reports for those assets. The attestation
steps were deliberately not exercised — that would write permanent entries to
the public transparency log — which is what the new checklist covers.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Signed-off-by: Thomas Müller <[email protected]>
@DeepDiver1975
DeepDiver1975 force-pushed the docs/release-verification-checklist branch from a6b1fe7 to 2d620b8 Compare September 18, 2026 21:50
@DeepDiver1975
DeepDiver1975 merged commit 34731fb into main Sep 18, 2026
6 checks passed
@DeepDiver1975
DeepDiver1975 deleted the docs/release-verification-checklist branch September 18, 2026 21:56
DeepDiver1975 added a commit to CodeForFire/codeforfire.github.io that referenced this pull request Sep 18, 2026
`SHA256SUMS.txt` covers the `.msi`, the `.deb` and the `.apk`. The `.dmg` is
built after the release already exists, so it deliberately never joins that
file — it carries its own `.dmg.sha256` instead.

The page offered a Mac user exactly one line, `shasum -a 256 -c
SHA256SUMS.txt`, which on a downloaded `.dmg` reports three `FAILED open or
read` entries and exits 1 — indistinguishable from a tampered download, and
the worst possible first impression for the Datenschutzbeauftragter this
section is written for.

Companion to CodeForFire/lagebuch#394, which fixes the same trap in the
README and the generated release notes. AGENTS.md there requires the two to
change together.

Signed-off-by: Thomas Müller <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant